# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=scapy
pkgver=2.6.0
pkgrel=0
pkgdesc="Powerful interactive packet manipulation"
url="https://scapy.net/"
arch="noarch"
license="GPL-2.0-only"
depends="python3"
makedepends="python3-dev py3-setuptools"
install="$pkgname.post-install"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver-3.tar.gz::https://github.com/secdev/scapy/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
a5543b44411fcc22eb909e806e729605616ce98ab15ff208ee90ad606265c6604ef295bc0b9b130f22711ffed0ad9fd4c52783c8df7ef79849f7db38b97d9e1d  scapy-2.6.0-3.tar.gz
"
